{"ast":null,"code":"import SearchOutlined from \"@ant-design/icons/es/icons/SearchOutlined\";\nimport * as React from 'react';\nimport Input from '../input';\nexport default function Search(props) {\n  var _props$placeholder = props.placeholder,\n    placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,\n    value = props.value,\n    prefixCls = props.prefixCls,\n    disabled = props.disabled,\n    onChange = props.onChange,\n    handleClear = props.handleClear;\n  var handleChange = React.useCallback(function (e) {\n    onChange === null || onChange === void 0 ? void 0 : onChange(e);\n    if (e.target.value === '') {\n      handleClear === null || handleClear === void 0 ? void 0 : handleClear();\n    }\n  }, [onChange]);\n  return /*#__PURE__*/React.createElement(Input, {\n    placeholder: placeholder,\n    className: prefixCls,\n    value: value,\n    onChange: handleChange,\n    disabled: disabled,\n    allowClear: true,\n    prefix: /*#__PURE__*/React.createElement(SearchOutlined, null)\n  });\n}","map":{"version":3,"names":["SearchOutlined","React","Input","Search","props","placeholder","value","prefixCls","disabled","onChange","handleClear","handleChange","useCallback","e","target","createElement","className","allowClear","prefix"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/transfer/search.js"],"sourcesContent":["import SearchOutlined from \"@ant-design/icons/es/icons/SearchOutlined\";\nimport * as React from 'react';\nimport Input from '../input';\nexport default function Search(props) {\n  const {\n    placeholder = '',\n    value,\n    prefixCls,\n    disabled,\n    onChange,\n    handleClear\n  } = props;\n  const handleChange = React.useCallback(e => {\n    onChange === null || onChange === void 0 ? void 0 : onChange(e);\n    if (e.target.value === '') {\n      handleClear === null || handleClear === void 0 ? void 0 : handleClear();\n    }\n  }, [onChange]);\n  return /*#__PURE__*/React.createElement(Input, {\n    placeholder: placeholder,\n    className: prefixCls,\n    value: value,\n    onChange: handleChange,\n    disabled: disabled,\n    allowClear: true,\n    prefix: /*#__PURE__*/React.createElement(SearchOutlined, null)\n  });\n}"],"mappings":"AAAA,OAAOA,cAAc,MAAM,2CAA2C;AACtE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,KAAK,MAAM,UAAU;AAC5B,eAAe,SAASC,MAAM,CAACC,KAAK,EAAE;EACpC,yBAOIA,KAAK,CANPC,WAAW;IAAXA,WAAW,mCAAG,EAAE;IAChBC,KAAK,GAKHF,KAAK,CALPE,KAAK;IACLC,SAAS,GAIPH,KAAK,CAJPG,SAAS;IACTC,QAAQ,GAGNJ,KAAK,CAHPI,QAAQ;IACRC,QAAQ,GAENL,KAAK,CAFPK,QAAQ;IACRC,WAAW,GACTN,KAAK,CADPM,WAAW;EAEb,IAAMC,YAAY,GAAGV,KAAK,CAACW,WAAW,CAAC,UAAAC,CAAC,EAAI;IAC1CJ,QAAQ,KAAK,IAAI,IAAIA,QAAQ,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,QAAQ,CAACI,CAAC,CAAC;IAC/D,IAAIA,CAAC,CAACC,MAAM,CAACR,KAAK,KAAK,EAAE,EAAE;MACzBI,WAAW,KAAK,IAAI,IAAIA,WAAW,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,WAAW,EAAE;IACzE;EACF,CAAC,EAAE,CAACD,QAAQ,CAAC,CAAC;EACd,OAAO,aAAaR,KAAK,CAACc,aAAa,CAACb,KAAK,EAAE;IAC7CG,WAAW,EAAEA,WAAW;IACxBW,SAAS,EAAET,SAAS;IACpBD,KAAK,EAAEA,KAAK;IACZG,QAAQ,EAAEE,YAAY;IACtBH,QAAQ,EAAEA,QAAQ;IAClBS,UAAU,EAAE,IAAI;IAChBC,MAAM,EAAE,aAAajB,KAAK,CAACc,aAAa,CAACf,cAAc,EAAE,IAAI;EAC/D,CAAC,CAAC;AACJ"},"metadata":{},"sourceType":"module"}